//
//  ButtonController.m
//  iBasic
//
//  Created by Andrew Barry on 6/02/09.
//  Copyright 2009 Barry Computer Services. All rights reserved.
//

#import "ButtonController.h"
#import "FormEditor.h"
#import "ControlPanel.h"

@implementation ButtonController
-(void) awakeFromNib {
	[self bindText:nameControl toProperty:@"name"];
	[self bindText:textControl toProperty:@"caption"];

	[self bindInt:leftControl toProperty:@"left"];
	[self bindInt:topControl toProperty:@"top"];
	[self bindInt:widthControl toProperty:@"width"];
	[self bindInt:heightControl toProperty:@"height"];
	
	[self bindCheckbox:lockLeft toProperty:@"lockLeft"];
	[self bindCheckbox:lockTop toProperty:@"lockTop"];
	[self bindCheckbox:lockRight toProperty:@"lockRight"];
	[self bindCheckbox:lockBottom toProperty:@"lockBottom"];

	[self bindCheckbox:visibleControl toProperty:@"visible"];
}

@end
